<?php
 defined('_JEXEC') or die('Restricted access');
  jimport( 'joomla.application.component.controller' );
class DssinhvienlopController extends JController{
	function display(){
		 	$document =& JFactory::getDocument();
 		 	$viewType = $document->getType();
 		 	$viewName ='listsinhvien';
 		 	$view = &$this->getView($viewName, $viewType);
 		 	$view->setLayout('default');
 		 	$view->display();
	}
	function listsinhvien(){
			$document =& JFactory::getDocument();
 		 	$viewType = $document->getType();
 		 	$viewName ='listsinhvien';
 		 	$view = &$this->getView($viewName, $viewType);
 		 	
	 		$model	= &$this->getModel('Dslop');
		 
		    if (!JError::isError( $model )) {
		    	//set model vao trong view
		     $view->setModel( $model, true );
		    }
 		 	$view->setLayout('listsinhvien');
 		 	$view->displayListSinhvien();
	}
	
}
